            <h3 class="box-title ">
              菜品种类
              <%= link_to("新增菜品种类", "/restaurants/food_types/new" , class:"btn btn-info btn-rounded pull-right") %> 
            </h3>
            <div class="table-responsive">
              <table class="table table-striped" >
                <thead>
                  <tr>
                    <th>菜品种类名称</th>
                    <th>已有菜品数</th>
                    <th>操作</th>
                  </tr>
                </thead>
                <tbody>
                  <% @food_types.each do |food_type| %>
                  <tr>
                    <td><%= food_type.name %></td>
                    <td><%= food_type.foods.count %></td>
                    <td>
                    <%= link_to "修改","/restaurants/food_types/#{food_type.id}/edit",class:"btn btn-info" %>
                    <%= link_to "删除","/restaurants/food_types/#{food_type.id}",method: :delete,class:"btn btn-danger",data:{confirm:"确定要删除吗?"} %>
                    </td>
                  </tr>
                  <% end %>
                </tbody>
              </table>
            </div>